﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace NewstorePlateformeDAO
{
    public partial class Activites
    {
        public static int? GetId(string codeActivite)
        {
            int? id = null;

            using (Newstore_PL_GOLD_BDDEntities context = new Newstore_PL_GOLD_BDDEntities(EntitiesHelper.connexionString))
            {
                id = (from o in context.Activites
                      where o.codeActivite == codeActivite
                      select o.idActivites).FirstOrDefault();
            }

            return id;
        }
    }
}
